package domain;

import java.util.ArrayList;
import java.util.List;

public class SedResponse {
	
	public static int TURN_COUNT = 100;

	public static enum Status{
		NORMAL_TURN, FIRST_TURN, REMATCH, NEWMATCH, END;
	}
	
	public String status;
	
	public String statusMessage;
	
	public int secondsLeft;
	
	public int turn;
	
	public int money;
	
	public List<Agent> agents = new ArrayList<Agent>();
	
	public List<Task> tasks = new ArrayList<Task>();
	
	public int mapSize;
	
	public List<Map.RoadBlock> roadBlocks = new ArrayList<Map.RoadBlock>();
	
	public List<HeadQuarter> headQuarters = new ArrayList<HeadQuarter>();
	
	public int getTurnsLeft(){
		return TURN_COUNT - turn;
	}
	
	public Status getStatus(){
		
		if("NormalTurn".equals(status))
			return Status.NORMAL_TURN;
		if("FirstTurn".equals(status))
			return Status.FIRST_TURN;
		if("ReMatch".equals(status))
			return Status.REMATCH;
		if("End".equals(status))
			return Status.END;
		
		return Status.NEWMATCH;
		
		
	}
	
}
